//
//  SRHistoryDataSR03.h
//  sr01sdkProject
//
//  Created by Linktop on 2022/8/12.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, SR03HIS_MEASURE_TYPE) {
    SR03HIS_MEASURE_TYPE_HR = 0,  // 测量模式-心率
    SR03HIS_MEASURE_TYPE_OXYGEN = 1, // 测量模式-血氧
};

extern const uint32_t DATA_INVALID_UUID; // dataUuid 等于此值 为无效的数据

NS_ASSUME_NONNULL_BEGIN

@interface SRHistoryDataSR03 : NSObject
@property(strong, readonly, nonatomic) NSNumber *timeStamp;

@property(strong, readonly, nonatomic) NSNumber *deviceModifyHeartRate; // 设备补偿后的心率
@property(strong, readonly, nonatomic) NSNumber * heart_ori_1,  * heart_ori_2, * heart_ori_3; // 原始心率 1 2 3
//@property(strong, readonly, nonatomic) NSNumber *hrv;
@property(strong, nonatomic) NSNumber *hrv;
@property(strong, nonatomic) NSNumber *breathRate;
@property(strong, readonly, nonatomic) NSNumber *bloodOxygen;
@property(strong, readonly, nonatomic) NSNumber *skinTemp;
@property(strong, readonly, nonatomic) NSNumber *steps; // 累加值
@property(strong, readonly, nonatomic) NSNumber *soprtTimes; // 运动计数 五分钟内的运动计数
@property(assign, nonatomic, readonly)BOOL isSos;
@property(assign, nonatomic, readonly)BOOL isCharging; // 是否在充电

@property(strong, nonatomic, readonly)NSNumber *dataUuid; // 记录唯一标识
@property(strong, nonatomic, readonly)NSNumber *isWear; //是否佩戴
@property(strong, nonatomic, readonly)NSNumber *isSportMode; //是否运动模式
/*
 * SR03HIS_MEASURE_TYPE_HR : heart_ori_3 有值, bloodOxygen 无值
 * SR03HIS_MEASURE_TYPE_OXYGEN : heart_ori_3 无值, bloodOxygen 有值
 */
@property(assign, nonatomic)SR03HIS_MEASURE_TYPE measureType;  // 测量模式

@property(assign, nonatomic, readonly)BOOL lis2ds12; //1 表示 LIS2DS12 加速度传感器使用设备原始计步数据
@property(strong, nonatomic, readonly)NSNumber *battery; // 1.1.7 添加支持


- (instancetype)initWithData:(NSData *)data;
@end

NS_ASSUME_NONNULL_END
